package com.jiazhong.basic.pack0308.ex;

public class DemoG {
    private static void a(int a) throws DemoF1{
        if(a>9){
            throw new DemoF1("输出的a不能大于9");
        }
    }
    public static void main(String[] args) {
        try {
            a(10);
        } catch (DemoF1 e) {
            System.out.println(e.getMessage());
        }
    }
}
